package mya.mes.mdc.local.mongodb;

import org.bson.Document;

import java.util.List;

public interface MongoDbService {

    public void saveMdcData(Document doc) throws Exception;

    public void saveData(Document doc,String collectionName) throws Exception;

    public List<Document> queryMdcData(List<FilterDto> filterDtoList, String sortPropery) throws Exception;

    /**
     * 查询含有指定tag的数据
     *
     * @param tagNoList
     * @param sortProperty
     * @return
     * @throws Exception
     */
    public List<Document> queryTagData(List<String> tagNoList, List<FilterDto> dtoList, String sortProperty) throws Exception;

    List<Document> queryMdcDataByParameter(String lineName, String dt, String topic, String sortPropery);

    public List<Document> queryMdcReportDataByParameter(String dt, String sortPropery);
}
